package io.bdmc.modules.bss.service.impl;

import io.bdmc.common.annotation.DataFilter;
import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.bss.entity.SmkAlarm;
import io.bdmc.modules.bss.mapper.SmkAlarmMapper;
import io.bdmc.modules.bss.model.AlarmParam;
import io.bdmc.modules.bss.service.ISmkAlarmService;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author huang lu
 * @since 2019-01-21
 */
@Service
public class SmkAlarmServiceImpl extends ServiceImpl<SmkAlarmMapper, SmkAlarm> implements ISmkAlarmService {
    
    @Autowired
    private SmkAlarmMapper alarmMapper;
    @DataFilter(tableAlias = "d", user = false)
    @Override
    public MyPage<SmkAlarm> mySelectPage(MyPage<SmkAlarm> page, AlarmParam param) {
        return alarmMapper.mySelectPage(page,param);
    }


    @Override
    public MyPage<SmkAlarm> wxSelectAlarm(MyPage<SmkAlarm> page, AlarmParam param) {
        return alarmMapper.wxSelectAlarm(page,param);
    }

    @Override
    public List<SmkAlarm> wxSelectAlarmByShopId(int id) {
        return alarmMapper.wxSelectAlarmByShopId(id);
    }

    @Override
    public Map<String,Object> wxAlarmSum(Long deptId){
        return alarmMapper.wxAlarmSum(deptId);
    }

    @Override
    public List<Map<String, Object>> homeAlarmYearChart(Long deptId) {
        return alarmMapper.homeAlarmYearChart(deptId);
    }

    @Override
    public List<Map<String, Object>> homeDeptAlarmDescTwoMonth(Long deptId) {
        return alarmMapper.homeDeptAlarmDescTwoMonth(deptId);
    }

    @Override
    public Map<String, Object> homeAlarmSum(Long deptId) {
        return alarmMapper.homeAlarmSum(deptId);
    }
    @Override
    public List<Map<String, Object>> homePlaceAlarmSum(Long deptId) {
        return alarmMapper.homePlaceAlarmSum(deptId);
    }
    
    @Override
    public List<Map<String, Object>> homeFireAlarmReasonSum(Long deptId) {
        return alarmMapper.homeFireAlarmReasonSum(deptId);
    }

    @Override
    public List<Map<String, Object>> homeHiddenAlarmPlace(Long deptId) {
        return alarmMapper.homeHiddenAlarmPlace(deptId);
    }

    @Override
    public List<Map<String, Object>> homeDeptHiddenAlarmSum(Long deptId) {
        return alarmMapper.homeDeptHiddenAlarmSum(deptId);
    }

    @Override
    public List<Map<String, Object>> homeDeptRealtimeAlarm(Long deptId) {
        return alarmMapper.homeDeptRealtimeAlarm(deptId);
    }

    @Override
    public List<Map<String, Object>> homeWeekHoursAlarm(Long deptId) {
        return alarmMapper.homeWeekHoursAlarm(deptId);
    }

    @Override
    public List<Map<String, Object>> allPlaceAlarmSum(Long deptId) {
        return alarmMapper.allPlaceAlarmSum(deptId);
    }

    @Override
    public Map<String, Object> todayAlarmSum(Long deptId) {
        return alarmMapper.todayAlarmSum(deptId);
    }

    @Override
    public List<Map<String, Object>> todayAlarmDetail(Long deptId) {
        return alarmMapper.todayAlarmDetail(deptId);
    }

    @Override
    public List<Map<String, Object>> yearAlarmReasonSum(Long deptId) {
        return alarmMapper.yearAlarmReasonSum(deptId);
    }

    @Override
    public Map<String, Object> homeAlarmSumByMonth(Long deptId, Integer month) {
        return alarmMapper.homeAlarmSumByMonth(deptId,month);
    }

    @Override
    public List<Map<String,Object>> fireAlarmDeptSumByMonth(Long deptId, Integer month) {
        return alarmMapper.fireAlarmDeptSumByMonth(deptId,month);
    }

    @Override
    public List<Map<String, Object>> fireAlarmPlaceSumByMonth(Long deptId, Integer month) {
        return alarmMapper.fireAlarmPlaceSumByMonth(deptId,month);
    }

    @Override
    public List<Map<String, Object>> fireAlarmReasonSumByMonth(Long deptId, Integer month) {
        return alarmMapper.fireAlarmReasonSumByMonth(deptId,month);
    }

    @Override
    public List<Map<String, Object>> fireHiddenAlarmDeptSumByMonth(Long deptId, int month) {
        return alarmMapper.fireHiddenAlarmDeptSumByMonth(deptId,month);
    }

    @Override
    public List<Map<String, Object>> fireHiddenAlarmPlaceSumByMonth(Long deptId, int month) {
        return alarmMapper.fireHiddenAlarmPlaceSumByMonth(deptId,month);
    }
    
}
